const mongoose = require('mongoose')
const { Schema, model } = mongoose
const CommentSchema = new Schema({
    name: { type:String, require:true},
    picture: { type:String, require:true},
    comment: {type:String, require:true},
    time: {type:String},
    username: {type:String},
    children: {type:Array, default: []},
})
const Comment = model('comment', CommentSchema)
module.exports = Comment
